Optimal. Leaf size=128 \[ -\frac {64 c^3 \tan (e+f x) (a \sec (e+f x)+a)^2}{315 f \sqrt {c-c \sec (e+f x)}}-\frac {16 c^2 \tan (e+f x) (a \sec (e+f x)+a)^2 \sqrt {c-c \sec (e+f x)}}{63 f}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a)^2 (c-c \sec (e+f x))^{3/2}}{9 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 128, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {3955, 3953} \[ -\frac {64 c^3 \tan (e+f x) (a \sec (e+f x)+a)^2}{315 f \sqrt {c-c \sec (e+f x)}}-\frac {16 c^2 \tan (e+f x) (a \sec (e+f x)+a)^2 \sqrt {c-c \sec (e+f x)}}{63 f}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a)^2 (c-c \sec (e+f x))^{3/2}}{9 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3953
Rule 3955
Rubi steps
\begin {align*} \int \sec (e+f x) (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{5/2} \, dx &=-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{9 f}+\frac {1}{9} (8 c) \int \sec (e+f x) (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \, dx\\ &=-\frac {16 c^2 (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{63 f}-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{9 f}+\frac {1}{63} \left (32 c^2\right ) \int \sec (e+f x) (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \, dx\\ &=-\frac {64 c^3 (a+a \sec (e+f x))^2 \tan (e+f x)}{315 f \sqrt {c-c \sec (e+f x)}}-\frac {16 c^2 (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{63 f}-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{9 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.24, size = 78, normalized size = 0.61 \[ \frac {4 a^2 c^2 \cos ^4\left (\frac {1}{2} (e+f x)\right ) (-220 \cos (e+f x)+107 \cos (2 (e+f x))+177) \cot \left (\frac {1}{2} (e+f x)\right ) \sec ^4(e+f x) \sqrt {c-c \sec (e+f x)}}{315 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 131, normalized size = 1.02 \[ \frac {2 \, {\left (107 \, a^{2} c^{2} \cos \left (f x + e\right )^{5} + 211 \, a^{2} c^{2} \cos \left (f x + e\right )^{4} + 26 \, a^{2} c^{2} \cos \left (f x + e\right )^{3} - 118 \, a^{2} c^{2} \cos \left (f x + e\right )^{2} - 5 \, a^{2} c^{2} \cos \left (f x + e\right ) + 35 \, a^{2} c^{2}\right )} \sqrt {\frac {c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{315 \, f \cos \left (f x + e\right )^{4} \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.74, size = 88, normalized size = 0.69 \[ -\frac {32 \, \sqrt {2} {\left (63 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{2} c^{3} + 90 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} c^{4} + 35 \, c^{5}\right )} a^{2} c^{2}}{315 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{\frac {9}{2}} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.64, size = 75, normalized size = 0.59 \[ -\frac {2 a^{2} \left (107 \left (\cos ^{2}\left (f x +e \right )\right )-110 \cos \left (f x +e \right )+35\right ) \left (\sin ^{5}\left (f x +e \right )\right ) \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {5}{2}}}{315 f \left (-1+\cos \left (f x +e \right )\right )^{5} \cos \left (f x +e \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.99, size = 503, normalized size = 3.93 \[ \frac {\left (\frac {a^2\,c^2\,2{}\mathrm {i}}{f}+\frac {a^2\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,214{}\mathrm {i}}{315\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1}+\frac {\left (\frac {a^2\,c^2\,32{}\mathrm {i}}{9\,f}+\frac {a^2\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,32{}\mathrm {i}}{9\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^4}-\frac {\left (\frac {a^2\,c^2\,64{}\mathrm {i}}{7\,f}+\frac {a^2\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,320{}\mathrm {i}}{63\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^3}+\frac {\left (\frac {a^2\,c^2\,48{}\mathrm {i}}{5\,f}+\frac {a^2\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,368{}\mathrm {i}}{105\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^2}-\frac {\left (\frac {a^2\,c^2\,16{}\mathrm {i}}{3\,f}+\frac {a^2\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,208{}\mathrm {i}}{315\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a^{2} \left (\int c^{2} \sqrt {- c \sec {\left (e + f x \right )} + c} \sec {\left (e + f x \right )}\, dx + \int \left (- 2 c^{2} \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{3}{\left (e + f x \right )}\right )\, dx + \int c^{2} \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{5}{\left (e + f x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________